

# HTML5's <time datetime=""> tag requires a specific format: 2011-03-31T14:43:00+0600
# The UTC Offset (+0600 above) portion is optional but helpful. If desired, the passed
# datetime object needs its tzinfo filled in.
# This accepts a Python datetime, outputs strings
def date_to_html5dt(dt):
	return dt.strftime('%Y-%m-%dT%H:%M:%S%z')